package com.nexfra.vocsys.common.exception;

public class GenericException extends Exception {
    private int errorCode = -1;
    private String errorMessage;

    public GenericException(int errorCode)    
    {
        this.errorCode= errorCode;
    }

    public GenericException(int errorCode, String errorMessage)    
    {
        super(errorMessage);
        this.errorCode= errorCode;
        this.errorMessage = errorMessage;
    }
    
    public GenericException(String errorMessage)    
    {
    	super(errorMessage);
    	this.errorMessage = errorMessage;
    }
    
    public GenericException(String errorMessage, Throwable rootCause)
    {
        super(errorMessage, rootCause);
        this.errorMessage = errorMessage;
    }

    public GenericException(Throwable rootCause)
    {
        super(rootCause);
    }

	public int getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
}
